import sequelize from "../../db/dbConnext";
import { option } from "../../db/commomConfig";
import { DataTypes } from "sequelize";

import CompanyInfoEntity from "../../../entities/HomePage/CompanyInfoEntity";
export type ICompanyInfo = Omit<CompanyInfoEntity, "validateThis">;

const CompanyInfoModel = sequelize.define<any, ICompanyInfo>(
  "company_info",
  {
    name: {
      type: DataTypes.STRING,
      allowNull: true,
    },
    content: {
      type: DataTypes.TEXT,
      allowNull: true,
    },
  },
  option
);
export default CompanyInfoModel;
